<?php foreach ($datas as $data):?>
<tr>
    <td><?php echo $data['id'] ?></td>
    <td><?php echo $data['sku'] ?></td>
    <td><?php echo $data['sku_name'] ?></td>
    <td><?php echo $data['warehouse_quantity'] ?>  </td>
    <td><?php echo $data['warehouseid'] ?></td>
    <td><?php echo isset($data['batch_code']) ? $data['batch_code'] : 0; ?></td>
    <td><?php echo $data['warehouse_date'] ?></td>
    <td><?php echo isset($types[$data['type']]) ? $types[$data['type']] : ''; ?></td>
    <td><?php echo $data['purchaseorders_id']?$data['purchaseorders_id']:'暂无' ?></td>
    <td><?php echo isset($suppliers[$data['supplier_id']]) ? $suppliers[$data['supplier_id']] : '未知' ?>  </td>
    <td><?php echo $data['export_tax_rebate'] ?></td>
    <td><?php echo $data['enterprise_dominant'] ?></td>　　
    <td><?php echo $data['storage_position'] ?></td>
    <td><?php echo round($data['single_price'], 2); ?></td>
    <td><?php echo round($data['cost'],2) ?></td>
    <td><?php echo round($data['money'],2); ?></td>
    <td><?php echo $data['remark']; ?></td>
    <td><?php echo isset($data['pu_remark'])?$data['pu_remark']:''?></td>
    <td><?php echo isset($users[$data['warehouse_man']]) ? $users[$data['warehouse_man']] : ''; ?></td>
</tr>
<?php endforeach;?>
<tr>
    <td colspan="19">
        <div class="mypage">
            <div style="text-align: center;">查询结果总计:<span class="num"><?php echo $totles?></span>条</div>
            <div style="text-align: center;">合计 <span>入库总数量：<?php echo round($totlesall['num'],2)?></span>
                <span>入库总金额 ：<?php echo round($totlesall['money'],2)?></span>
                <span>入库总成本 :<?php echo round($totlesall['cost'],2)?></span>
            </div>
            <?php echo $pager_links;?>
        </div>
    </td>
</tr>
